<div id="user_list_wrap">
    <div class="left_module_menu">
        <?=form::button('add_user', 'Dodaj użytkownika', array('onclick'=>'window.location.href="'.URL::site('usermanagement/add_user').'"'))?>
    </div>
    <?

    ?>
    <div class="user_content_wrap">
        <table class="list-table" style="width: 700px;">
            <thead>
                <tr>
                    <th>Lp.</th>
                    <th>Login</th>
                    <th>E-mail</th>
                    <th>Ostatnie logowanie</th>
                    <th>Opcje</th>
                </tr>
            </thead>
            <tbody>
            <?foreach($list as $v):?>
                <tr>
                    <td><?=++$lp?></td>
                    <td><?=$v['username']?></td>
                    <td><?=$v['email']?></td>
                    <td><?=date('Y-m-d H:i:s',$v['last_login'])?></td>
                    <td><?=html::anchor('usermanagement/add_user/'.$v['id'], 'Edytuj', array())?></td>
                </tr>
            <?endforeach;?>
            </tbody>
        </table>
    </div>
</div>